{include file="common/header.tpl"}
<section class="main">	
    <article class="right-col">
    	<h2><a href="{$back}">{$language.title.club}</a> &raquo; {$language.ahref.add}</h2>
        <form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}club/save" class="ui">        	
            <ul>
            	{if isset($smarty.session.CLUB_ERROR)}
                	<li class="error">
                    	{include file="common/error.tpl" errors=$smarty.session.CLUB_ERROR}
                    </li>
                {/if}            	
                <li>
                	<label for="name">{$language.label.name}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="name" id="name" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.name}{/if}" autocomplete="false"/>
                	</div>
                </li>    
                <li>
                	<label for="nickname">{$language.label.nickname}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="nickname" id="nickname" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.nickname}{/if}" autocomplete="false"/>
                	</div>
                </li>                          
                <li>
                	<label for="country">{$language.label.country}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="country" id="country" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.country}{/if}" autocomplete="false" />
                	</div>
                </li>
                <li>
                	<label for="logo">{$language.label.logo}:</label>
                    <div class="txt">
                        <input type="text" class="text" name="link" id="link" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.link}{/if}" autocomplete="false" onkeypress="javascript:resetLogo(1);"/>
	                	<input type="file" class="text" name="logo" id="logo" value="" autocomplete="false" onchange="javascript:resetLogo(2);" />
                	</div>
                </li>
                <li>
                	<label for="slug">{$language.label.slug}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="slug" id="slug" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.slug}{/if}" autocomplete="false" />
                	</div>
                </li>
                <li>
                	<label for="pshort">{$language.label.short}:</label>
                    <div class="txt">
                         <input type="text" class="text" name="pshort" id="pshort" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.sshort}{/if}" />	                	
                	</div>
                </li>
                <li>
                	<label for="description">{$language.label.description}:</label>
                    <div class="area">
                         <textarea rows="4" cols="50" name="description" id="description">{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.description}{/if}</textarea>	                
                	</div>
                </li>
                <li>
                	<label for="tag">{$language.label.tag}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="tag" id="tag" value="{if isset($smarty.session.CLUB_INPUT)}{$smarty.session.CLUB_INPUT.tag}{/if}" autocomplete="false" />
                	</div>
                </li>                
                <li>
                 	<button type="submit"><strong>{$language.btn.add}</strong></button>
                    <button type="button" class="cancel" onclick="javascript:document.location.href='{$back}'"><strong>{$language.btn.cancel}</strong></button>
                </li>
            </ul>
        </form>        
    </article> 
</section>
{include file="common/footer.tpl"}
                
